begintownscript;

variables;
short bmessage,rctx,rcty,pcs;
string custom_m;

body;

beginstate INIT_STATE;

	march_party(63,63);
	march_party(63,63);
	march_party(63,63);
	march_party(63,63);

	set_total_visibility(1);
	force_view_center(9,56);
	force_instant_terrain_redraw();
	pause(3);

	rcty = 55;
	while(rcty >= 43){
		force_view_center(9,rcty);
		force_instant_terrain_redraw();
		pause(3);

		rcty = (rcty - 1);
	}
	pause(3);

	reset_dialog();
	add_dialog_str(0,"The first of the big changes was when Emperor Stewart I, just as Profanus Pyre had said, announced Rufus Rothgard as the next General Field Marshall overlooking a large portion of the Imperial Army in the Royal Courtyard.",0);
	add_dialog_str(1,"He stated that Rothgard would lead a new _task-force_ that would _lead the Empire_, calling this new conglomerate which contained over half of the military the _Red Army_.",0);
	add_dialog_str(2,"Rothgard gratefully accepted the promotion and gave a speech which, as is quite typical, raised morale.",0);
	add_dialog_str(3,"In other words, Hunter's conspiracy theory was correct:  The brigands were ultimately raised in order to scare Stewart I into authorizing Rufus Rothgard with large amounts of political clout.",0);
	add_dialog_choice(0,"And it gets better, too.");
	bmessage = run_dialog(1);

	force_view_center(54,32);
	force_instant_terrain_redraw();

	rcty = 31;
	while(rcty >= 13){
		force_view_center(54,rcty);
		force_instant_terrain_redraw();
		pause(1);

		rcty = (rcty - 1);
	}
	pause(4);

	reset_dialog();
	add_dialog_str(0,"Both Janus and Orphus-- Katothen's two forms-- had an audience in front of the Emperor himself.  They brought Hunter along because of her recent fame and political clout.",0);
	if(party_size() == 1){
		add_dialog_str(1,"(As an aside, I have since found out why Katothen uses two forms.  He has, apparently, been in command of the Emperor's magi for centuries, having one form be the current wizard in command and the other form be the 'rising star' to take his place.)",15);
		add_dialog_str(2,"Rothgard, immediately after being promoted to General Field Marshall, began promoting people to the position of General.  (All of them, or so I am told, are rakshasi.)  Katothen tried to protest this abuse of power.",0);
	}
	if(party_size() > 1){
		add_dialog_str(1,"(As an aside, we have since found out why Katothen uses two forms.  He has, apparently, been in command of the Emperor's magi for centuries, having one form be the current wizard in command and the other form be the 'rising star' to take his place.)",15);
		add_dialog_str(2,"Rothgard, immediately after being promoted to General Field Marshall, began promoting people to the position of General.  (All of them, or so we are told, are rakshasi.)  Katothen tried to protest this abuse of power.",0);
	}
	add_dialog_str(3,"General Field Marshall Ward Sigurd, the Emperor's personal bodyguard, warned the Emperor to heed Janus' counsel, but the Emperor rejected this notion out of hand.",0);
	add_dialog_str(4,"Katothen remarked that while it was sad that Emperor Stewart was so stubborn and trusting in The Immortal, it was both surprising and beneficial that Ward Sigurd expressed discontent.",0);
	add_dialog_str(5,"Meanwhile, there's that whole Hunter incident...",0);
	add_dialog_choice(0,"The drama continues.");
	bmessage = run_dialog(1);

	rctx = 53;
	while(rctx >= 34){
		force_view_center(rctx,13);
		force_instant_terrain_redraw();
		pause(1);

		rctx = (rctx - 1);
	}

	rctx = 25;
	while(rctx >= 6){
		force_view_center(rctx,6);
		force_instant_terrain_redraw();
		pause(1);

		rctx = (rctx - 1);
	}

	reset_dialog();
	add_dialog_str(0,"Katothen wasn't pleased with Hunter for leaving me alone to face off against The Immortal while she was busy getting maimed and wasting Katothen's time rescuing her, and told her this immediately after their audience with the Emperor.",0);
	add_dialog_str(1,"Hunter, meanwhile, was equally dissatisfied with Katothen's overly-political approach in dealing with The Immortal, stating that he should not stand behind a curtain and let everyone else do the work.",0);
	add_dialog_str(2,"Katothen sternly warned her to avoid reckless behavior and insisted that she trust his judgement, but she promptly told both of his forms to copulate with one another.",0);
	add_dialog_str(3,"Apparently, the two had a falling-out.  Not that she was that great of a help anyway.",0);
	if(party_size() == 1)
		add_dialog_choice(0,"And as for me...");
	if(party_size() > 1)
		add_dialog_choice(0,"And as for us...");
	bmessage = run_dialog(1);

	set_total_visibility(0);
	force_instant_terrain_redraw();
	pause(5);

	reset_dialog();
	add_dialog_str(0,"I, personally, tend to find all of this just a bit numbing.  Like, I've been plunged into a bucket of rainbow paint so that even were I to step out of it, the rainbows would be encrusted onto my eyes forever.",0);
	add_dialog_str(1,"Katothen has been pretty understanding, serving me nothing but the finest tea and plain meals.  Very little talk.  I don't know if I'll ever be able to look at the world as being less crazy ever again, but I appreciate his giving me the option.",0);
	add_dialog_str(2,"I never really bothered asking him what The Immortal was showing us with the giant tower and the magic circle.  I figure, it wasn't really my business.  Maybe I don't want to know.",0);
	add_dialog_str(3,"Dr. Wu said there would be a choice to be made in the future.  Whatever it is, assuming he's not simply blowing smoke, it still lies waiting in the future.",0);
	add_dialog_choice(0,"The End");
	bmessage = run_dialog(1);

	pcs = 0;
	while(pcs <= 3){
		if(char_ok(pcs) == TRUE){
			change_spell_level(pcs,1,15,get_flag(30,(pcs + 5)));
		}

		pcs = (pcs + 1);
	}

	award_party_xp(500,30);
	award_party_xp(500,30);
	award_party_xp(500,30);
	award_party_xp(500,30);
	award_party_xp(500,30);
	award_party_xp(500,30);
	end_scenario(1);

break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;
break;

beginstate 10;
break;
